/*
 * Copyright 2006-2007 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.sf.jstester.util;

/**
 * Abstraction over all Assert implementations.
 * 
 * @author Andres Almiray <aalmiray@users.sourceforge.net>
 */
public interface JsAssert {
   void assertTrue( String message, boolean condition );

   void assertTrue( boolean condition );

   void assertFalse( String message, boolean condition );

   void assertFalse( boolean condition );

   void fail( String message );

   void fail();

   void assertEquals( String message, Object expected, Object actual );

   void assertEquals( Object expected, Object actual );

   void assertEquals( String message, String expected, String actual );

   void assertEquals( String expected, String actual );

   void assertEquals( String message, double expected, double actual, double delta );

   void assertEquals( double expected, double actual, double delta );

   void assertEquals( String message, float expected, float actual, float delta );

   void assertEquals( float expected, float actual, float delta );

   void assertEquals( String message, long expected, long actual );

   void assertEquals( long expected, long actual );

   void assertEquals( String message, boolean expected, boolean actual );

   void assertEquals( boolean expected, boolean actual );

   void assertEquals( String message, byte expected, byte actual );

   void assertEquals( byte expected, byte actual );

   void assertEquals( String message, char expected, char actual );

   void assertEquals( char expected, char actual );

   void assertEquals( String message, short expected, short actual );

   void assertEquals( short expected, short actual );

   void assertEquals( String message, int expected, int actual );

   void assertEquals( int expected, int actual );

   void assertNotNull( Object object );

   void assertNotNull( String message, Object object );

   void assertNull( Object object );

   void assertNull( String message, Object object );

   void assertSame( String message, Object expected, Object actual );

   void assertSame( Object expected, Object actual );

   void assertNotSame( String message, Object expected, Object actual );

   void assertNotSame( Object expected, Object actual );
}